import request from '@/plugin/axios'

export function page (queryParam) {
  return request({
    url: '/trade/tx-type/page',
    method: 'get',
    params: queryParam
  })
}

export function getById (id) {
  return request({
    url: '/trade/tx-type/' + id,
    method: 'get'
  })
}

export function save (obj) {
  return request({
    url: '/trade/tx-type',
    method: 'post',
    data: obj
  })
}

export function update (obj) {
  return request({
    url: '/trade/tx-type',
    method: 'put',
    data: obj
  })
}
